package com.ansatsing.templateMethod.notUseTempMethod;
//泡茶：把水煮沸--》用沸水浸泡茶叶--》把茶水倒进杯子---》加柠檬
public class Tea {
	//泡茶祖传秘方
	void prepareRecipe() {
		boilWater();//1把水煮沸
		steepTeaBag();//2用沸水浸泡茶叶
		pourInCup();//3把茶水倒进杯子
		addLemon();//4加柠檬
	}
	//1把水煮沸
	public void boilWater() {
		System.out.println("Boiling water");
	}
	//2用沸水浸泡茶叶
	public void steepTeaBag() {
		System.out.println("Steeping the tea");
	}
	//3把茶水倒进杯子
	public void addLemon() {
		System.out.println("Adding Lemon");
	}
	//4加柠檬
	public void pourInCup() {
		System.out.println("Pouring into cup");
	}
}
